package com.cskaoyan.bean.groupon;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.Pattern;
import java.sql.Timestamp;

/**
 * @program: whyccz-mall-project
 * @description:
 * @create: 2021-06-09 18:55
 **/
@Data
public class GrouponCreateBO {


	private String goodsId;
	//	@Pattern(regexp = "/(^[\\-0-9][0-9]*(.[0-9]+)?)$/",message = "参数值不对")
	@Pattern(regexp = "^[0-9]*$", message = "参数值不对")
	private String discount;
	//	@Pattern(regexp = "/(^[\\-0-9][0-9]*(.[0-9]+)?)$/",message = "参数值不对")
	@Pattern(regexp = "^[0-9]*$", message = "参数值不对")
	private String discountMember;

	private String expireTime;
}
